package Sudoku3.rules;
import Sudoku3.structure.cell;


public class rule02_naked_single {
	
	public rule02_naked_single(cell c) {
		//value is unknown, and there is only 1 possibility
		if ( !(c.isSolved()) && (c.getPossible().cardinality() == 1) ) {
			int v = c.getPossible().nextSetBit(0) + 1;
			c.setValue(v);
//			System.out.println("Rule 02:  Naked Single Value(" + v + ") found for cell(" + c.toStringCoords() + ").");
		}
	}

}
